<?xml version="1.0" encoding="UTF-8"?>
<jsp:root version="1.2" xmlns:f="http://java.sun.com/jsf/core" xmlns:h="http://java.sun.com/jsf/html" xmlns:jsp="http://java.sun.com/JSP/Page" xmlns:ui="http://www.sun.com/web/ui">
    <jsp:directive.page contentType="text/html;charset=UTF-8" pageEncoding="UTF-8"/>
    <f:view>
        <ui:page binding="#{adminSolicitud.page1}" id="page1">
            <ui:html binding="#{adminSolicitud.html1}" id="html1">
                <ui:head binding="#{adminSolicitud.head1}" id="head1">
                    <ui:link binding="#{adminSolicitud.link1}" id="link1" url="/resources/stylesheet.css"/>
                </ui:head>
                <ui:body binding="#{adminSolicitud.body1}" id="body1" style="-rave-layout: grid">
                    <ui:form binding="#{adminSolicitud.form1}" id="form1">
                        <div style="position: absolute; left: 0px; top: 0px">
                            <jsp:directive.include file="encab1.jspf"/>
                        </div>
                        <ui:button action="#{adminSolicitud.button1_action}" binding="#{adminSolicitud.button1}" id="button1" mini="true" primary="true"
                            style="left: 71px; top: 120px; position: absolute; width: 72px" text="Cerrar"/>
                        <ui:staticText binding="#{adminSolicitud.staticText1}" id="staticText1"
                            style="color: rgb(108, 154, 154); font-family: 'Times New Roman','Times',serif; font-size: 18px; left: 240px; top: 144px; position: absolute" text="Reasignación de solicitudes"/>
                        <ui:panelLayout binding="#{adminSolicitud.layPanel1}" id="layPanel1" panelLayout="flow" style="border-style: solid; border-color: rgb(204, 204, 204) rgb(204, 204, 204) rgb(204, 204, 204) rgb(204, 204, 204); height: 150px; left: 72px; top: 192px; position: absolute; width: 425px; -rave-layout: grid">
                            <ui:dropDown binding="#{adminSolicitud.dropDownProducto}" id="dropDownProducto"
                                items="#{adminSolicitud.sct0004DataProviderProducto.options['SCT0004.CDGOPRDCTO,SCT0004.DSCRPCION']}"
                                onChange="common_timeoutSubmitForm(this.form, 'layPanel1:dropDownProducto');"
                                style="left: 119px; top: 13px; position: absolute; width: 199px" valueChangeListener="#{adminSolicitud.dropDownProducto_processValueChange}"/>
                            <ui:dropDown binding="#{adminSolicitud.dropDownSublinea}" id="dropDownSublinea"
                                items="#{adminSolicitud.sct0019DataProviderSublinea.options['SCT0019.CDGOSBLNEA,SCT0019.DSCRPCIONSBLNEA']}"
                                onChange="common_timeoutSubmitForm(this.form, 'layPanel1:dropDownSublinea');"
                                style="left: 120px; top: 48px; position: absolute; width: 197px" valueChangeListener="#{adminSolicitud.dropDownSublinea_processValueChange}"/>
                            <ui:dropDown binding="#{adminSolicitud.dropDownAgencia}" id="dropDownAgencia"
                                items="#{adminSolicitud.sct0045DataProviderAgencias.options['SCT0045.CDGOAGNCIA,SCT0045.NMBREAGNCIA']}"
                                onChange="common_timeoutSubmitForm(this.form, 'layPanel1:dropDownAgencia');"
                                style="left: 120px; top: 79px; position: absolute; width: 197px" valueChangeListener="#{adminSolicitud.dropDownAgencia_processValueChange}"/>
                            <ui:dropDown binding="#{adminSolicitud.dropDownEtapa}" id="dropDownEtapa" items="#{SessionBean1.listOption}"
                                onChange="common_timeoutSubmitForm(this.form, 'layPanel1:dropDownEtapa');"
                                style="left: 120px; top: 120px; position: absolute; width: 197px" valueChangeListener="#{adminSolicitud.dropDownEtapa_processValueChange}"/>
                            <ui:label binding="#{adminSolicitud.label1}" id="label1" style="left: 48px; top: 15px; position: absolute" text="Producto:"/>
                            <ui:label binding="#{adminSolicitud.label2}" id="label2" style="left: 48px; top: 48px; position: absolute" text="Sublinea:"/>
                            <ui:label binding="#{adminSolicitud.label3}" id="label3" style="left: 48px; top: 82px; position: absolute" text="Agencia:"/>
                            <ui:label binding="#{adminSolicitud.label4}" id="label4" style="left: 48px; top: 120px; position: absolute" text="Etapa:"/>
                            <ui:button action="#{adminSolicitud.btnFiltrar_action}" binding="#{adminSolicitud.btnFiltrar}" id="btnFiltrar"
                                imageURL="/resources/buscar.gif" mini="true" primary="true" style="left: 117px; top: 142px; position: absolute; width: 72px"
                                text="Filtrar" visible="false"/>
                            <ui:staticText binding="#{adminSolicitud.staticText3}" id="staticText3" style="position: absolute; left: 240px; top: 144px" visible="false"/>
                        </ui:panelLayout>
                        <ui:dropDown binding="#{adminSolicitud.dropDownUsarios}" id="dropDownUsarios"
                            items="#{adminSolicitud.sct0043DataProviderUsuario.options['USRNME,NMBREUSRIO']}" style="left: 72px; top: 384px; position: absolute; width: 295px"/>
                        <ui:label binding="#{adminSolicitud.label5}" id="label5" style="left: 72px; top: 360px; position: absolute" text="Seleccione el usuario al que va a asignar las solicitudes"/>
                        <ui:button action="#{adminSolicitud.button2_action}" binding="#{adminSolicitud.button2}" id="button2" mini="true" primary="true"
                            style="left: 407px; top: 384px; position: absolute; width: 79px" text="Reasignar &gt;"/>
                        <h:panelGrid binding="#{adminSolicitud.gridPanel1}" id="gridPanel1" style="height: 96px; left: 48px; top: 432px; position: absolute; width: 96px">
                            <ui:table augmentTitle="false" binding="#{adminSolicitud.table1}" deselectMultipleButton="true" id="table1" paginateButton="true"
                                paginationControls="true" selectMultipleButton="true" style="width: 601px" title="Selecione la(s) Solicitud(es)" width="601">
                                <script><![CDATA[
function initAllRows() {
  var table = document.getElementById("form1:table1");
  table.initAllRows();
}

}]]></script>
                                <ui:tableRowGroup binding="#{adminSolicitud.tableRowGroup1}" id="tableRowGroup1" rows="10"
                                    selected="#{adminSolicitud.selectedState}" sourceData="#{adminSolicitud.sct0022DataProviderSolicitudes}" sourceVar="currentRow">
                                    <ui:tableColumn align="center" binding="#{adminSolicitud.tableColumn15}" id="tableColumn15"
                                        onClick="setTimeout('initAllRows()', 0)" selectId="checkbox1" valign="middle" width="32">
                                        <ui:checkbox binding="#{adminSolicitud.checkbox1}" id="checkbox1" selected="#{adminSolicitud.selected}" selectedValue="#{adminSolicitud.selectedValue}"/>
                                    </ui:tableColumn>
                                    <ui:tableColumn binding="#{adminSolicitud.tableColumn2}" headerText="Usuario asignado" id="tableColumn2" sort="USRNME" width="132">
                                        <ui:staticText binding="#{adminSolicitud.staticText4}" id="staticText4" text="#{currentRow.value['USRNME']}"/>
                                    </ui:tableColumn>
                                    <ui:tableColumn binding="#{adminSolicitud.tableColumn1}" headerText="Nº Solicitud" id="tableColumn1" sort="NMROSLCTUD" width="105">
                                        <ui:staticText binding="#{adminSolicitud.staticText2}" id="staticText2" text="#{currentRow.value['NMROSLCTUD']}"/>
                                    </ui:tableColumn>
                                    <ui:tableColumn binding="#{adminSolicitud.tableColumn4}" headerText="NIT" id="tableColumn4" sort="NIT">
                                        <ui:staticText binding="#{adminSolicitud.staticText7}" id="staticText7" text="#{currentRow.value['NIT']}"/>
                                    </ui:tableColumn>
                                    <ui:tableColumn binding="#{adminSolicitud.tableColumn6}" headerText="Nombre del cliente" id="tableColumn6" sort="NMBRE" width="163">
                                        <ui:staticText binding="#{adminSolicitud.staticText8}" id="staticText8" text="#{currentRow.value['NMBRE']}"/>
                                    </ui:tableColumn>
                                    <ui:tableColumn binding="#{adminSolicitud.tableColumn7}" headerText="Pimer Apellido" id="tableColumn7" sort="PRMERAPLLDO">
                                        <ui:staticText binding="#{adminSolicitud.staticText9}" id="staticText9" text="#{currentRow.value['PRMERAPLLDO']}"/>
                                    </ui:tableColumn>
                                    <ui:tableColumn binding="#{adminSolicitud.tableColumn8}" headerText="Segundo Apellido" id="tableColumn8" sort="SGNDOAPLLDO">
                                        <ui:staticText binding="#{adminSolicitud.staticText10}" id="staticText10" text="#{currentRow.value['SGNDOAPLLDO']}"/>
                                    </ui:tableColumn>
                                    <ui:tableColumn binding="#{adminSolicitud.tableColumn9}" headerText="Monto" id="tableColumn9" sort="MNTO">
                                        <ui:staticText binding="#{adminSolicitud.staticText11}" id="staticText11" text="#{currentRow.value['MNTO']}"/>
                                    </ui:tableColumn>
                                    <ui:tableColumn binding="#{adminSolicitud.tableColumn5}" headerText="Fecha Activacion" id="tableColumn5" sort="FCHACTVCION">
                                        <ui:staticText binding="#{adminSolicitud.staticText6}" id="staticText6" text="#{currentRow.value['FCHACTVCION']}"/>
                                    </ui:tableColumn>
                                    <ui:tableColumn binding="#{adminSolicitud.tableColumn3}" headerText="Fecha Finalizacion" id="tableColumn3" sort="FCHAFINPRCSO">
                                        <ui:staticText binding="#{adminSolicitud.staticText5}" id="staticText5" text="#{currentRow.value['FCHAFINPRCSO']}"/>
                                    </ui:tableColumn>
                                </ui:tableRowGroup>
                            </ui:table>
                            <h:panelGrid binding="#{adminSolicitud.gridPanel2}" columns="3" id="gridPanel2" width="749">
                                <ui:messageGroup binding="#{adminSolicitud.messageGroup1}" id="messageGroup1" style="width: 198px"/>
                                <ui:alert binding="#{adminSolicitud.alert1}" id="alert1" style="width: 171px"/>
                                <ui:pageAlert binding="#{adminSolicitud.pageAlert1}" detail="Una o varias  Solicitudes ya estan asignadas a este Usuario"
                                    id="pageAlert1" style="border: 1px solid #339900; background-color: #ffffcc; height: 88px; width: 313px" title="Advertencia"
                                    type="warning" visible="false"/>
                            </h:panelGrid>
                        </h:panelGrid>
                    </ui:form>
                </ui:body>
            </ui:html>
        </ui:page>
    </f:view>
</jsp:root>
